import com.team.core.AppCoreApplication;
import org.jasypt.encryption.StringEncryptor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppCoreApplication.class)
public class AppCoreTestApplication {

    @Resource
    private StringEncryptor stringEncryptor;


    @Test
    public void encryptor(){
        String sunshujie = stringEncryptor.encrypt("root");
        System.out.println(sunshujie);
    }

}
